const express = require("express");
const app = express();
app.get("/", (req, res) => {
  let data = {
    name: "coderqian",
  };
  //   json格式传输数据
  res.end(`getData(${JSON.stringify(data)})`);
});
app.listen(8000, () => {
  console.log("端口8000监听中");
});
